package com.plugins.pluginlib.utils;

/**
 * 常量配置
 */
public class IConstants {
    public static final String FROM = "extra.from";
    public static final int FROM_INTERNAL = 0;
    public static final int FROM_EXTERNAL = 1;

    public static final String EXTRA_DEX_PATH = "extra.dex.path";
    public static final String EXTRA_CLASS = "extra.class";
    public static final String EXTRA_PACKAGE = "extra.package";

    public static final String EXTRA_FROM_HOST_MESSAGE = "extra.from.host.message";
    public static final String EXTRA_PACKNAME = "extra.packageName";

    public static final int ACTIVITY_TYPE_UNKNOWN = -1;
    public static final int ACTIVITY_TYPE_NORMAL = 1;
    public static final int ACTIVITY_TYPE_FRAGMENT = 2;
    public static final int ACTIVITY_TYPE_ACTIONBAR = 3;

    public static final String PROXY_ACTIVITY_VIEW_ACTION =
            "com.plugins.pluginlib.proxy.activity.VIEW";
    public static final String PROXY_FRAGMENT_ACTIVITY_VIEW_ACTION =
            "com.plugins.pluginlib.proxy.fragmentactivity.VIEW";

    public static final String CPU_ARMEABI = "armeabi";
    public static final String CPU_X86 = "x86";
    public static final String CPU_MIPS = "mips";

    public static final String PREFERENCE_NAME = "plugin_load_configs";


    public final static String INTENT_PLUGIN_PACKAGE = "dl_plugin_package";
    public final static String INTENT_PLUGIN_CLASS = "dl_plugin_class";

    //插件消息频道 suffix+package
    public final static String PLUGIN_PUSH_MESSAGE_SUFFIX = "PLUGIN_MESSAGE_";
    //宿主消息频道 suffix+package
    public final static String HOST_PUSH_MESSAGE_SUFFIX = "HOST_MESSAGE_";

    //从host传递过来的参数
    public final static String FROM_HOST_MESSAGE = "fromHostMessage";

}
